import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
import vuexPersist from "vuex-persist";

export default new Vuex.Store({
  state: {
    loginDate: ''
  },
  mutations: {
    // setLoginData(state,data) {
    //   state.loginDate = data
    // },
    // ruleForm: {
    //   user:'',
    //   password:''
    // }
  },
  actions: {},
  modules: {},
  plugins: [
    new vuexPersist({
      storage: window.localStorage,
    }).plugin,
  ],
  //插件 配置持久化插件
});
